Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 short questions #309071
02/06/10 23:27
02/06/10 23:27
Joined: Jun 2009
Posts: 38
H
hungryhobo Offline OP
Newbie
hungryhobo  Offline OP
Newbie
H

Joined: Jun 2009
Posts: 38
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.

Re: 2 short questions [Re: hungryhobo] #309077
02/06/10 23:43
02/06/10 23:43
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
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.

Re: 2 short questions [Re: Widi] #309085
02/07/10 02:36
02/07/10 02:36
Joined: Jun 2009
Posts: 38
H
hungryhobo Offline OP
Newbie
hungryhobo  Offline OP
Newbie
H

Joined: Jun 2009
Posts: 38
ah! got it. thank you. I am still having problems with my physics entity ignoring ignoring a model.



Last edited by hungryhobo; 02/07/10 02:43.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1