kasool Posted December 6, 2023 Share Posted December 6, 2023 I'm trying to modify the collision shape for the Third person controller I've attached to a crate model I added. So far in ThirdPersonControls::Start() I've tried adding: auto model = entity->As<Model>(); auto bounds = model->GetBounds(BOUNDS_LOCAL); auto collider = CreateBoxCollider(bounds.size, bounds.center); model->SetCollider(collider); But this doesn't seem to work. I'm guessing the default collider is the size of the starter robot model? Quote Link to comment Share on other sites More sharing options...
Josh Posted December 7, 2023 Share Posted December 7, 2023 The player collision mode ignores any assigned colliders and uses several cylinder shapes to get the desired behavior. It would probably not be difficult to add a command that adjusts the radius and height of the player shape. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
kasool Posted December 7, 2023 Author Share Posted December 7, 2023 40 minutes ago, Josh said: The player collision mode ignores any assigned colliders and uses several cylinder shapes to get the desired behavior. It would probably not be difficult to add a command that adjusts the radius and height of the player shape. I see, do you mean that as a feature that will be coming from your end or am I doing something wrong? Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted December 7, 2023 Solution Share Posted December 7, 2023 A feature that I add in. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. 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.