Actor collides with another actor then passes through it
Hi,
I am trying to set up a simple behaviour where a wall moves across the scene and when it reaches the player's actor it collides with it and pushes it. I have the moving wall as a non-movable object moving using interpolation and the actor moveable by the player. When the wall reaches the player's actor, it pushes it slightly then passes through it. If the player's actor is actively moved into the wall, it gets pushed along as intended. When the player's actor is moved to the wall is cannot pass through it.
Any idea why the collision is not sticking? Thanks in advance for any help!
I am trying to set up a simple behaviour where a wall moves across the scene and when it reaches the player's actor it collides with it and pushes it. I have the moving wall as a non-movable object moving using interpolation and the actor moveable by the player. When the wall reaches the player's actor, it pushes it slightly then passes through it. If the player's actor is actively moved into the wall, it gets pushed along as intended. When the player's actor is moved to the wall is cannot pass through it.
Any idea why the collision is not sticking? Thanks in advance for any help!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Comments
Perhaps try using velocity to x or y limits, and a rule that when the wall collides with the player, set velocity to 0. This is off the top of my head and might not work, but it's in the right ballpark, I'm thinking...
----------------------------------------------
http://davidgriffinapps.co.uk/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Before coming back to the thread though, I tried playing with various settings. I'll have to test it lots more to be sure it is actually doing what I want, but it seems that making the wall movable with fixed rotation has stopped the strange "passing through" behaviour. I don't really understand, but it *seems* to be producing the result I want.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS