I'm making a level where you play the whole track inside of a wheel, and to move forward you have to make it roll. The problem is the wheel that the bike is inside starts to turn and tilt after a little while so it goes off the track and the bike just falls out.
How can I make it so that the wheel stays straight with the driving line and only rolls forwards or backwards?
Try checking the "Lock to Driving Line" Box. This will only work if it has physics activated.
It's checked, the wheel stays on the driving line but it still tilts.Originally Posted by LukeMSki
I think I have it working now though. I ended up putting huge hit triggers on either side of the wheel so that when it tilts enough to hit them, the trigger sets off an object position event that sets the yaw/pitch to 0 and the bank to whatever angle Z of the wheel is at that time. When the event activates there is a slight pause in rotation but it's not very noticeable.
Hopefully there is an easier, less hacky way of doing this that I just haven't found yet.
My suggestion would tie movement to an OPE, or have you tried a rotation hinge? Or sliders?
Or perhaps an 'invisible track' the tire is inside.
When you lock glued objects to the driving line, only the glue point gets locked to the driving line. I would suggest putting two dummy points on either side of the wheel, locking them to the driving line, then attaching them to the wheel using a hard point to point hinge for each one.
would making invisible guide rails set to contact response and friction set to 0 do the job? bit of a cheat.
Thats kind of what I was suggesting. OPE might be the best option tho. Could control rotation, AND forward/backwards movement through horizontal stick movement and an equation.Originally Posted by dasraiser