playMaker

Author Topic: Car game turning without physics  (Read 729 times)

bummer6

  • Playmaker Newbie
  • *
  • Posts: 3
Car game turning without physics
« on: May 04, 2021, 06:10:19 AM »
I've got a car that is hugging the ground by reading the normal direction of the surface beneath it using a raytrace action and then using a "set rotation" to align it with the normal. Now, I can't make the car turn because the previously mentioned "set rotation" is overriding my commands to rotate the car on the Y axis. Is there any way I can fix this?

These are basically all the actions I'm using to make the car follow the angle of the ground

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Car game turning without physics
« Reply #1 on: May 04, 2021, 10:34:42 AM »
Hi.
Maybe some parenting?

have a empty object and set the car as a child
then use the parent for raytrace rotaion
and child can rotate inside it

bummer6

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Car game turning without physics
« Reply #2 on: May 05, 2021, 12:24:31 PM »
Hi.
Maybe some parenting?

have a empty object and set the car as a child
then use the parent for raytrace rotaion
and child can rotate inside it

Yup, that worked! Thanks a lot for the idea. :)