2 short questions

Posted By: hungryhobo

2 short questions - 02/06/10 23:27

hello, I have come across 2 problems.

I want the player ot be able to press a button and instantly be transported to a spot. i tried manually setting the xyz to 0 to pu the player at the origin. the character wil only stay there while the button is pressed though. As soon as the button is released, the character goes back to its original spot. I did:

unstuck()
{
player.x = 0;
player.y = 0;
player.z = 0;
}

I am using the physics engine and use torque to move my character who is a sphere.

Also:

using the physics engine and the same moving techniques, phent_addtorqueglobal, how can i make an item passable by only 1 type of entity.

I heard of using push, but i dont know how to do that with the physics engine. Thank you for your help.
Posted By: Widi

Re: 2 short questions - 02/06/10 23:43

You don`t can move a entity direct if this entity is registry as Physicobject. Erase the physic registration:
phent_settype( myCrate, 0, 0 );
Then you can move it and after that make a new registration as physic entity.
Posted By: hungryhobo

Re: 2 short questions - 02/07/10 02:36

ah! got it. thank you. I am still having problems with my physics entity ignoring ignoring a model.


© 2024 lite-C Forums