tjheldna Posted March 21, 2013 Share Posted March 21, 2013 Hi Josh, Getting a crash on PhysicsSetPosition when it hits the ground in c++. I'm not sure if I am creating the object properly in code or it's a bug. - C++ - The Model is loaded dynamically in the game. - Add a shape to the model - Try to apply some velocity to it. - When PhysicsSetPosition is called I get a crash. - Variable projectileDirection can be any value. model = Model::Load("Models/Inventory/Projectile/Projectile.mdl"); Shape* shape = Shape::Box(); entity->SetShape(shape); shape->Release(); entity->SetCollisionType(Collision::Prop); entity->SetMass(2); Game loop entity->PhysicsSetPosition(projectileDirection.x, projectileDirection.y, projectileDirection.z, 2); Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 21, 2013 Share Posted March 21, 2013 This is not the first physics problem that occurs with Leadwerks 3. All of them come from the newton classes. It is best if you post it in Bug reports instead of general topics. http://www.leadwerks.com/werkspace/topic/6244-phsyics-crash-intersecting-shapes/ http://www.leadwerks.com/werkspace/topic/6281-character-controller-bug-again/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.