Get event.force on a sensor

I’m trying to make a wall in my game where if you are going fast enough, you can pass through it, otherwise you can’t, and it’s solid. Of course the first way I thought of was to test if the event.force is high enough, and if it is set the wall as isSensor. But that way, your player would smash into the wall, and slow down and perhaps rebound. So then I thought if the wall was a sensor and if the event force was too low turn it out of a sensor, but it appears that event.force returns nil if the object is a sensor, because it can’t register a postCollision event. It would seem that I will have to make a math equation, and test it from a point just before the wall, to return an event.force-like value. How would I do that? [import]uid: 147322 topic_id: 29332 reply_id: 329332[/import]

You could start it out as a sensor and instead of getting the force (which you said you cannot do with a sensor), you could try and fetch the velocity and density of the colliding body and do some basic math calculations on force that way? [import]uid: 164950 topic_id: 29332 reply_id: 117907[/import]