Alienhead Posted July 18, 2022 Share Posted July 18, 2022 Got a question regarding collision types. In the docs it reads ; collisiontype: the entity collision type. This can be any integer between 0 and 99. When reading the chart in the docs the types stop at 8. My question is 9 - 99 can be custom type collisions? if so do I need to declare these somewhere before attempting to use them? For example, say I had a vehicle and I set it's collisiontype to 51. Then I have a projectile type set to 50 that I do not want colliding or registering a collision to type 51. What is the proper way to declare this rule? Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Thirsty Panther Posted July 18, 2022 Share Posted July 18, 2022 https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_SetCollisionType Other threads that might help. 1 Quote Link to comment Share on other sites More sharing options...
Genebris Posted July 18, 2022 Share Posted July 18, 2022 There's this method to set collision types, but it's missing from documentation. I really hope Ultra doesn't suffer from these undocumented methods that Leadwerks has so many of. Collision:SetResponse(type, type, response) 2 Quote Link to comment Share on other sites More sharing options...
Alienhead Posted July 18, 2022 Author Share Posted July 18, 2022 That helps ty guys. 1 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Alienhead Posted July 21, 2022 Author Share Posted July 21, 2022 --- disregard Quote I'm only happy when I'm coding, I'm only coding when I'm happy. 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.