Move constraint on an object that can rotate
kapser
Member Posts: 458
Hi,
I'm trying to have a rotating object with a Y/X move constraint. I tried using Linear Velocity and Max speed 0 constraints, and it seem to work, but when the object is rotated or collide with physical objects, it will slowly move down instead of remaining at the same coordinates.
Any idea how to achieve this? I want the object able to rotate but not move.
I'm trying to have a rotating object with a Y/X move constraint. I tried using Linear Velocity and Max speed 0 constraints, and it seem to work, but when the object is rotated or collide with physical objects, it will slowly move down instead of remaining at the same coordinates.
Any idea how to achieve this? I want the object able to rotate but not move.
Comments
When self.rotation = 0
Interpolate self.rotation to 360
If you want it to rotate the opposite direction use -360 and then you can play with the duration to get the speed you want.
___________________________________________________________________________________
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
For example, a physical player object would be able to push it to spin, and the player would react phisically to it.
I'm searching through the tutorials, but I can't find anything helping me about constraints and attribute expressions.
Edit: I figured out GameSalad doesn't let us do this so I'll try to do this using global variables.
Thx for help.
then in your actor place these behaviors at the top in this order outside of any rules
Change Attribute self.Start.x to self.position.x
Change Attribute self.Start.y to self.position.y
Constrain Attribute self.position.x to self.Start.x
Constrain Attribute self.position.y to self.Start.y
___________________________________________________________________________________
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
Anyways, that's a lot of questions for just on problem, thanks. I should do fine without this fixed anyways