#I'm kinda new to CV2 and I'm wondering what adding or subtracting positions do

1 messages · Page 1 of 1 (latest)

summer flare
#

Im just wondering cause i have seen it alot

#

also, i have watched tutorials but those don't really help

verbal hedge
#

they will give another Position that can be used either as a Point in World space or a Direction from the first Position.

#

Its basic maths, (X1+/-X2) (Y1+/-Y2) (Z1+/-Z2) = (X3,Y3,Z3)

summer flare
#

im trying to figure out how rclmans ai works

verbal hedge
#

ah

summer flare
#

like i'm just confused how it slowly gos to the player

#

ty

verbal hedge
#

ah So, When a Position is subtracted from another, It gives a Vector3 That is Pointing From a Position to Another, In your case, Its the (Player Body Position) - (Position of An object) which after you Normalize the Vector3 Gives you a Direction that the AI can Use to Set Its own position to

summer flare
#

wow tysm