Collision Mesh Animation Workaround HELP ME
by Zach Broderick · in Torque Game Engine · 11/27/2007 (10:40 pm) · 1 replies
Ok, me and a few friends and creating a game similar in nature to Prince of Persia, Tomb Raider, Indiana Jones.
So our character does quite a bit of of obstacle avoidance.
Rolling boulders.
Swinging Axes.
Swinging Logs.
Crushing Walls.
Unfortunately the player cannot be pushed around by animated collision meshes!
So for example the log swinging down from the ceiling and hitting the player, does not work. Rather the log passes right through the player.
Does anyone know how to go about getting this to work?
Perhaps making the objects based off the vehicle datablock. (vehicles can hit players....right?)
Is there any workaround anyone knows of?
So our character does quite a bit of of obstacle avoidance.
Rolling boulders.
Swinging Axes.
Swinging Logs.
Crushing Walls.
Unfortunately the player cannot be pushed around by animated collision meshes!
So for example the log swinging down from the ceiling and hitting the player, does not work. Rather the log passes right through the player.
Does anyone know how to go about getting this to work?
Perhaps making the objects based off the vehicle datablock. (vehicles can hit players....right?)
Is there any workaround anyone knows of?
Torque Owner Aaron E
Default Studio Name
You might want to look into ApplyImpulse as a starting point. Someone wrote a nice little script for the onCollision event to exert impulse forces on vehicle impact. I can't find the link for it at the moment, but it should be very helpful for what you're trying to do.