rotation and bouncing

djdeedjdee Member Posts: 180
hi
I have tried to solve a small bug thats affecting my game. i even tried searching in the form for some answers but dint get any.
i have a character as a plane. the problem is when it hits the ground in a slant way it starts rotating. how do i avoid it from rotating when hit the ground.
and when it falls from the sky with its nose down and collides with the ground it bounces even after i have assinged as following physics

physics --- plane --- ground
Density --- 30 --- 40
friction --- 100 --- 200
bounciness --- 0 --- 0

any help would b gladly appreciated

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited January 2014
    In the Actor Attributes you can click/turn on Fixed Rotation (under Physics) and it will stop your actor from rotating around.
  • djdeedjdee Member Posts: 180
    In the Actor Attributes you can click/turn on Fixed Rotation (under Physics) and it will stop your actor from rotating around.
    thanks jamie_c for response,
    but i need to rotate in the direction in which it is moving when it is in the air.
    for that am using
    self.rotation to vectorToAngle( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Maybe you could detect when it hits the ground and Constrain it's rotation to the value you mention above?
  • djdeedjdee Member Posts: 180
    edited January 2014
    Maybe you could detect when it hits the ground and Constrain it's rotation to the value you mention above?
    i tried what u said but it still gives problem, the plane starts moving and does not stop. It also rotates up and down very fast. :(
Sign In or Register to comment.