|
Title: Partial Physics Post by: jddg5wa on November 12, 2013, 07:54:33 AM I was wondering if it is possible to have partial box2d physics in gamemaker? As in some objects will rotate freely if acted upon by other forces and others will act as if there is no physics.
I ask because I've never been able to get it to work. My main character is a flying spaceship that rotates back and forth a few degrees depending on the direction your moving. When I add physics into the mix I can't get rotation to work without it rotating when colliding into things. Then it ends up staying in whatever angle it last was. In short, I am asking if I can turn off box2d physics for specific objects while having physics on. So far I haven't seen a way but I may be missing something obvious. Thanks for any help! Title: Re: Partial Physics Post by: BorisTheBrave on November 12, 2013, 01:54:13 PM No idea about game maker, but box2d supports objects that act as if there is no physics, but effect other objects - they are called kinematic objects.
Title: Re: Partial Physics Post by: Rat Casket on November 14, 2013, 01:52:17 PM If youre talking about the built in physics in GMS, no. If you have a physics room you cannot also have non physics objects in there.
Title: Re: Partial Physics Post by: Xion on November 15, 2013, 12:04:39 AM ...yes you can? I totally do.
Title: Re: Partial Physics Post by: Rat Casket on November 15, 2013, 07:54:47 AM Since when??
Title: Re: Partial Physics Post by: MECH6 on November 17, 2013, 08:24:13 PM You can have objects that aren't affected by physics in the physics room. The issue is that you can't use the both the physics collisions and the normal collision events together.
Title: Re: Partial Physics Post by: Rat Casket on November 18, 2013, 08:01:01 AM Can I make objects become physics objects? For instance lets say I make a skeleton sprite composed of legs, torso, head, and arm sprites all stitched together via code. Then I blast him with a shotgun, and all of his pieces become physics pieces and he goes flying all over the place.
Although it may just be easier to swap him with physics chunks and send them flying instead. |