Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 13,557 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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