Moving obstacle
Atlanten
Member, PRO Posts: 56
Hey, I was wondering:
How do I make a moving obstacle that is not affected by stuff colliding with it? You know, I just want the thing to have its own animation no matter what crashes into it.
Even if I set the density to a billion and the player's to 0.1, it will still pick up some force and start gliding off in the wrong direction.
And I don't want to unclick moveable, because then it won't move at all.
Any advice? Thanks!
How do I make a moving obstacle that is not affected by stuff colliding with it? You know, I just want the thing to have its own animation no matter what crashes into it.
Even if I set the density to a billion and the player's to 0.1, it will still pick up some force and start gliding off in the wrong direction.
And I don't want to unclick moveable, because then it won't move at all.
Any advice? Thanks!
Comments
make 2 attributes in the Actor: originalY and originalX
Change Attribute
self.originalX = self.PositionX
Change Attribute
self.originalY = self.PositionY
Constrain Attribute
self. PositionX = self. originalX
Constrain Attribute
self. PositionY = self. originalY
That will allow to have, say, a spinning propeller in the scene that knock around other Actors.
Constraining velocity works to a certain extent. But it gets a bit static
I guess what I am looking for is a way to have something move + rotate, but not be affected by gravity or collision?