Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Martin_HH), 6,079 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Removing collision with non-physics entity? #23436
02/22/04 09:42
02/22/04 09:42
Joined: Mar 2002
Posts: 580
San Francisco
clone45 Offline OP
User
clone45  Offline OP
User

Joined: Mar 2002
Posts: 580
San Francisco

Hello!

I'm working on a little game that has a girl on a swing. I'm using the physics engine to handle the swing's motion. At the moment, the girl is a separate entity than the swing. I only have the Commercial version of GameStudio, so I only have one physics object available.

My question is, what's the best way to have the girl stay on the swing? At the moment, the swing entity (with physice) keeps colliding with the girl entity. Is there any way to tell the physics engine that the girl should NOT be considered when doing collision detection? I've tried the .push attribute, but it doesn't seem to help.

One solution is to make the girl and swing "one". (How Zen!) I'd like to hear other solutions before I resort to doing that.

Thanks!
- Bret

Re: Removing collision with non-physics entity? [Re: clone45] #23437
02/22/04 12:49
02/22/04 12:49
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Hmmmm....

My impression is that that registering an object as a physics object nullifies the possibility of doing this by setting .passable flags and such.

How about having the girl have a constant ent_move update routine that places her maybe 5 quants above and 5 quants forward of the swing.

This way, as the swing swings, the girl will always be moved to be relative to the swing.

maybe this will work??

Re: Removing collision with non-physics entity? [Re: clone45] #23438
02/22/04 13:16
02/22/04 13:16
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
why don't you make the girl passable?

Re: Removing collision with non-physics entity? [Re: ventilator] #23439
02/22/04 13:27
02/22/04 13:27
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
I think that setting passable will make the girl passable to ent_moves, but not the PE based moves.

Worth a check though...

Re: Removing collision with non-physics entity? [Re: fastlane69] #23440
02/23/04 04:23
02/23/04 04:23
Joined: Mar 2002
Posts: 580
San Francisco
clone45 Offline OP
User
clone45  Offline OP
User

Joined: Mar 2002
Posts: 580
San Francisco

Oh, talk about embarrassed. Making the girl passable worked great. I don't know why I didn't try that before posting. My apologies.

Thank you Ventilator and fastlane69 for your responses.
- Bret

Re: Removing collision with non-physics entity? [Re: clone45] #23441
02/23/04 05:11
02/23/04 05:11
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
I am so confused as to which flags work with PE and which don't.

I wish the manual was a bit clearer as to what effect the flags have and don't have under ent_move and the PE.

Tack ".passable" onto the PE usable list


Moderated by  HeelX, Spirit 

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