Frictional Games Forum (read-only)
player slips through body of rotating entity (chair) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: player slips through body of rotating entity (chair) (/thread-20029.html)



player slips through body of rotating entity (chair) - darksky - 01-22-2013

i'm playing around with the rotateProp... function atm and got the following problem:
I jump on a chair. then the chair rotates around an scriptarea. then the player is constantly moving backwards (I know, simple physics laws). the problem is, that the player somehow can slip through the body of the chair while moving backwards.

check this video
http://www.youtube.com/watch?v=gTyDKbAW8Kw

is there a way to fix / prevent it?


RE: player slips through body of rotating entity (chair) - nivramm - 01-23-2013

(01-22-2013, 10:43 PM)darksky Wrote: i'm playing around with the rotateProp... function atm and got the following problem:
I jump on a chair. then the chair rotates around an scriptarea. then the player is constantly moving backwards (I know, simple physics laws). the problem is, that the player somehow can slip through the body of the chair while moving backwards.

check this video
http://www.youtube.com/watch?v=gTyDKbAW8Kw

is there a way to fix / prevent it?

I'm sure there is a more proper solution for this, but you could add a blockbox to the body of the chair. Don't know how to make it stay on the chair, but i'm sure there is a way.
I guess you have collision enabled at the chair?


RE: player slips through body of rotating entity (chair) - The chaser - 01-23-2013

If there wasn't collision, you couldn't even sit in the chair.

Open the model editor. Make a vertical shape, like if the chair had the back taller. Then, make a body and go to View<Outline. Make a relation between the body and the mesh.