rotation and bouncing
djdee
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
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
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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 )
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page