I’ve a car that change angle when change direction.
If i put a fire behind the car, and when the car rotate, the fire change of the same angle of the car.
The problem is than when the car rotate, the fire doesn’t stay behind the car in the correct position.
Events are : change angle of fire1 : set to Car1.Angle() Change the position of fire1 : set to Car1.PointX("fire_position") (x axis), set to Car1.PointY("fire_position") (y axis)
when you change the position of an object are you use its origin point. when you rotate an object you are use its center point by default. check these for both objects. if you find everything okay (and yet not good), try the object linking feature (see Wiki).
Thank you Gyuszko. I’ve changed the fire point, Center point. Now all these are = Origin point.
I linked the Car1 to Fire1… but the problem doesn’t change.
when you change the position of an object are you use its origin point. when you rotate an object you are use its center point by default.
So, for the object car1, set “center point” = “origin point”, then i create “fire_point” to the back of the car.
In the object “fire”, set “center point” = “origin point”.
Change the position of fire1 : set to Car1.PointX("fire_point"),set to Car1.PointY("fire_point")