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.
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.