Restoring or Adding Physics to MOVETYPE_TOSS
Moderator: InsideQC Admins
3 posts
• Page 1 of 1
Restoring or Adding Physics to MOVETYPE_TOSS
Basically, I got a primitive gravity gun that picks up an object by setting the picked up object's origin to the end of my traceline every frame. When let go the object floated in mid air, I sort of fixed this by adding droptofloor, but theres no visual falling going on and I'd like to see that. So how would i start (or restart) the physics of an object with MOVETYPE_TOSS to make it fall when it's let go.
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
Re: Restoring or Adding Physics to MOVETYPE_TOSS
Untested, but I'd try this after changing to MOVETYPE_TOSS:
- Code: Select all
obj.velocity = '0 0 1';
obj.flags = obj.flags - (obj.flags & FL_ONGROUND);
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
Re: Restoring or Adding Physics to MOVETYPE_TOSS
Thanks, it did work, but I have messed with it some more and decided to spawn a complete copy of the object and that allows for physics to take place. It wasn't that urgent, it was a proof of concept really, thanks for the help though 
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest