What I need is a physics object that contacts other object but doesnt actually effect their motion. For example I want to make a retangle that triggers a collision even with the player and as a result the player will then move slower or stay afloat. I figure this is what sensor is for, but when I tried to use sensor it still acted like a solid object. I will try to get an example up soon but I do not have time right now. Thanks for any help.
--peace
Le Jeune Renard
Sensors in the Physics engine
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 11
- Joined: Mon Apr 13, 2009 7:33 pm
- Contact:
Re: Sensors in the Physics engine
I think it would be easier to leave the physics engine out of this. And just use a simple procedure for these sensors. It has been mentioned before on these forums about per pixel collision detection and such. But a lot of the time it is pointless and simpler methods can be used.
It depends on the shape of the object that will be hitting these sensors. But I would steer clear of the physics engine for this task, and save your resources and do it as simple as you can get away with. I just use the most basic form of box collisions in my game, and design my sprites so that you really don't notice that much.
It depends on the shape of the object that will be hitting these sensors. But I would steer clear of the physics engine for this task, and save your resources and do it as simple as you can get away with. I just use the most basic form of box collisions in my game, and design my sprites so that you really don't notice that much.
Re: Sensors in the Physics engine
I better take a closer look at that (when I get the time).lejeunerenard wrote:[...] it still acted like a solid object.
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests