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
4 registered members (AndrewAMD, Baklazhan, Ayumi, Hanky27), 1,387 guests, and 2 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
Become Physics Entity Upon Collision? #71862
04/23/06 00:04
04/23/06 00:04
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Is it possible to have a entity being moved by c_move, and when struck by
another entity, bounce off and act as a physics entity?

For instance, two cars racing side by side (using c_move and models). One car
rams the other. the rammed cars event function is triggered and it somehow
uses bounce and then enables physics, so it appears to bouce off the ramming
car and flips away.

Any ideas?
Thanks!


Not two, not one.
Re: Become Physics Entity Upon Collision? [Re: Grafton] #71863
04/26/06 00:54
04/26/06 00:54
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
That would be possible, but not easy. You need to make sure that physics entities are not stuck inside each other when being created. Because the car will be in an arbitrary orientation you also need to carefully calculate the PH_WHEEL axes.

Re: Become Physics Entity Upon Collision? [Re: Marco_Grubert] #71864
05/10/06 07:38
05/10/06 07:38
Joined: Sep 2004
Posts: 260
UB,Mongolia
Olzii Offline
Member
Olzii  Offline
Member

Joined: Sep 2004
Posts: 260
UB,Mongolia
I have tried it using two method.

1. Create physics entity and disable it. On event it will be enabled.
But this method is not good solution if we have a lot of disabled physics entity.
I have tried it and FPS is not very good.
2. Create non-physics entity and enable event impact. On event it will be converted to physics entity.
In my example entity is falling down through the land after converted to physics entity. What 's wrong with it , Marco ?

Olzii


The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland
Re: Become Physics Entity Upon Collision? [Re: Olzii] #71865
05/10/06 16:20
05/10/06 16:20
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Quote:

I have tried it using two method.

1. Create physics entity and disable it. On event it will be enabled.
But this method is not good solution if we have a lot of disabled physics entity.
I have tried it and FPS is not very good.
2. Create non-physics entity and enable event impact. On event it will be converted to physics entity.
In my example entity is falling down through the land after converted to physics entity. What 's wrong with it , Marco ?

Olzii




maybe it's being spawned inside/below the block/model itself, so it would not register collision, and keeps falling, try spawning it a little higher for testing...

regards and good luck,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Become Physics Entity Upon Collision? [Re: Helghast] #71866
05/11/06 07:22
05/11/06 07:22
Joined: Sep 2004
Posts: 260
UB,Mongolia
Olzii Offline
Member
Olzii  Offline
Member

Joined: Sep 2004
Posts: 260
UB,Mongolia
Hi Dennis,

Finally, I have did my own good a6 car. Do you want to test it ? I think that you will say something good.

About my question, if i lift up my model before converting it to physics entity, then it will look like jumping and i dont want it. But anyway i have tried it, result is same.

Olzii


The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland
Re: Become Physics Entity Upon Collision? [Re: Olzii] #71867
05/11/06 10:31
05/11/06 10:31
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
hahaa, sure... PM me the link.
For some reason my ICQ wont load, wont start, or will crash...
i even reinstalled my pc, i have no idea what this conflict is.
So im using MSN again
You could mail me your project maybe? i could take a look at it.

regards and good luck,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Become Physics Entity Upon Collision? [Re: Helghast] #71868
05/12/06 04:00
05/12/06 04:00
Joined: Sep 2004
Posts: 260
UB,Mongolia
Olzii Offline
Member
Olzii  Offline
Member

Joined: Sep 2004
Posts: 260
UB,Mongolia


The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland

Moderated by  HeelX, Spirit 

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