I wonder if it is possible using the Presolve callback to change the way the collision responses are handled.
The goal would be to mimic the physic forces between a person and a train wagon:
- When outside the wagon, the person can move the wagon by applying forces to it by pushing the wagon's walls. (the person uses the friction force of his feet with the ground)
- When inside the wagon, the person cannot move the wagon by apply forces to it by pushing wagon's walls. Also the person can move inside the wagon and will inherit the wagon velocity.
This is my current setup :
- the character is a circle
- the wagon has 6 walls to be able to have 2 entrances
- there is a sensor to detect if the character is inside the wagon
Currently if the character collides the wagon from inside or outside the wagon will be moved.
So how can I prevent the character to move the wagon when inside ?
Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests