Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
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 (7th_zorro, dr_panther), 724 guests, and 3 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
Elevator #337157
08/09/10 06:15
08/09/10 06:15
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
I made an elevator as a physics kinematic object... I used pXent_kinematic ( entity, var active );
and moved it using pXent_moveglobal ( entity, VECTOR* vMove, ANGLE* aRotate);

However, the physics player doesn't move up and down or sideway with the moving elevator (( The elevator gets through the body of the player)) ...
When I don't use physics I can solve it by making the player.z = elevator.z+100; but now I can't use xyz to move the player cuz I am using physics...
Any ideas how to solve this??

Re: Elevator [Re: bk9iq] #337163
08/09/10 07:44
08/09/10 07:44
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
just a wild guess, but maybe it's moving too fast for the physics collision to pick up.
in this case you might try to set CCD on for both physical objects (elevator and player).

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Elevator [Re: Helghast] #337209
08/09/10 14:23
08/09/10 14:23
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
Originally Posted By: Helghast
just a wild guess, but maybe it's moving too fast for the physics collision to pick up.
in this case you might try to set CCD on for both physical objects (elevator and player).

regards,


Thanks for answering me Helghast...
I put pX_setccd ( 1 ); in the while loops of my player and my lift ... and slowed the speed of the elevator down to 0.5 but still the same thing happening !
I don't know how to fix this...

Re: Elevator [Re: bk9iq] #337217
08/09/10 15:05
08/09/10 15:05
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
dont put it in a while, that makes no sense. Put it only once in your main.

Then on the elevator and player action, put this pXent_setccdskeleton(my, nullvector, 1);

good luck.
regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Elevator [Re: Helghast] #337254
08/09/10 19:12
08/09/10 19:12
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
Originally Posted By: Helghast
dont put it in a while, that makes no sense. Put it only once in your main.

Then on the elevator and player action, put this pXent_setccdskeleton(my, nullvector, 1);

good luck.
regards,


I wish that this works, but it doesn't... I have been trying all the day but nothing works...
Now my character moves up with the elevator when the player moves on the elevator, but if I don't move the player then it falls through !!!!


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