Page 1 of 1

Locking movement on a certain axis?

PostPosted: Mon Aug 11, 2008 4:52 pm
by DatokerJ
Is it possible on a kickable, to prevent the object from moving on say the X and/or Y axis while still allowing movement on the Z?

Re: Locking movement on a certain axis?

PostPosted: Mon Aug 11, 2008 11:48 pm
by Trylon
I think it is, but you have to make an invsible collider "rod", along which it moves, and a hole in the objects physical mesh in which the "rod" fits.
If you do it just right, it will only move along the rod.

Re: Locking movement on a certain axis?

PostPosted: Tue Aug 12, 2008 9:17 am
by DatokerJ
:) got something setup like that now, I think I got the bugs worked out.
I am afraid it may fly off the collider as It did many times during tests until I got it tweaked! not been able to get it off yet but I am almost sure it will break sooner or later!

Cheers :)
Dato

Re: Locking movement on a certain axis?

PostPosted: Tue Aug 12, 2008 9:54 am
by Trylon
You could try capping the ends of the pole - making them quite a bit larger, so the thing wont fly off..