• collision missing on animated model
    3 replies, posted
Trying to make a vehicle that has a walk animation. when I place the model in hammer as prop_dynamic and parent it to any moving entity the collision moves with the animation just fine. However spawning it with lua as prop_dynamic with an animation just completly gets rid of any collision. what am I (my friend actually I have no clue about lua) missing? thank you in advance
Dynamic props placed in the map have their collisions automatically built after the map loads. When making a dynamic prop via lua you have to declare what collisions it'll use have by using Entity.SetSolid. If you want your model to use it's physics object for its collisions, you'll also need to create it's physics object using Entity.PhysicsInit, and disallow the new physics object from ever moving by itself using PhysObj.EnableMotion if you're gonna parent the prop to something like you said.
I tried that. (Im working with Pommes on this one) Problem ist that while yes it does give it some collision those are not remotely at the correct positions (For our walker they seem to be focused all on one leg). And they also do not move when the animation is played. But they do when placed by the map. So sth is still missing here
got it to work afterall thanks Dr. Inco
Sorry, you need to Log In to post a reply to this thread.