- Home /
How to construct a skateboard?
Hi everyone,
physics noob here, I need help to construct a well made skateboard in unity.
right now what I have is:
A skateboard gameobject which contains : rigidbody, animator, a controller script and a skateboard script and the following gameobject:
Colliders (empty gameobject):
Wheel (wheel collider)
Wheel (wheel collider)
Wheel (wheel collider)
Wheel (wheel collider)
Meshes (empty gameobject):
Wheel (wheel mesh, mesh collider, rigidbody, wheel script)
Wheel (wheel mesh, mesh collider, rigidbody, wheel script)
Wheel (wheel mesh, mesh collider, rigidbody, wheel script)
Wheel (wheel mesh, mesh collider, rigidbody, wheel script)
as you probably know, you can turn a skateboard when it's accelerating by pressing your heels on the board:
https://youtu.be/con8ii2Bgys?t=1m49s
this way the board deck rotates a bit, but the trucks and wheels stay straight.
this is what I want to achieve in unity, can you give me a good advice how to?
should I use some sort of physics component like springs?
I thought about doing an animation with just the board deck rotates, but I really want to achieve this with physics.
Answer by CowNecromancer · Apr 21, 2015 at 03:53 PM
you can only really use a script with a rotate something and I can't really give example because c# or javascript but this is for both:
gameObject.transform.rotation and add onto that. but then of course you have to do it relative to the rotation.first have a variable for rotation then + or - the rotation, but I'm not sure if you even want script. But in my knowledge I don't think that you can do it with physics an EASY WAY.
Your answer
Follow this Question
Related Questions
Skateboard tilting problem 1 Answer
Check if skateboard is grounded 1 Answer
Skateboarding Game 2 Answers
i need help with my skateboard physics 0 Answers
Skateboarding Rotation Problem 1 Answer