xOffset confusion

Yithpistol1m
I’m having some issues wrapping my head around the xOffset. I guess what I’m fuzzy on is what is this offset value doing? I couldn’t figure out what I needed to ‘offset’ exactly to create a value to do so.

It’s probably obvious to most. This is part of the course where the difficulty just spiked for me.

I t hink I might have figured it out. The xOffset is how many meters do I need to move per frame to get the target speed (xSpeed).

xOffset= Xthrow(a kind of percentage of movement, unitless) * xSpeed (ms^-1) * Time.DetlaTime(s)

seconds cancel out, leaving xOffset in meters.

Is this right? Feels right.

2 Likes

Sound’s right… s^-1 units cancel the deltaTime units, leaving metres.

1 Like

Privacy & Terms