Pastaspace Posted January 24, 2015 Share Posted January 24, 2015 When it comes to collision types, you have all your basic ones, Prop, Scene, Character, Trigger, Debris, Projectile, LineOfSight, etc. However, is it possible to define additional collision types, other than the defaults, and add them to the big table of existing collision types? If so, how? Quote Link to comment Share on other sites More sharing options...
macklebee Posted January 24, 2015 Share Posted January 24, 2015 List of inherent types: Collision.Prop = 1 Collision.Scene = 2 Collision.Character = 3 Collision.Trigger = 4 Collision.Debris = 5 Collision.Projectile = 6 Collision.LineOfSight = 7 List of possible responses: Collision.None = 0 Collision.Collide = 1 Collision.Trigger = 4 With the following warning from Josh concerning using the constants and not the numerical values: "You really should stick to using the named constants. Technically, the values of these are allowed to change at any time, without breaking the spec." Example of use in LUA: Collision:SetResponse(type, type, response) entity:SetCollisionType(type) Collision:SetResponse(10, Collision.Character, Collision.Trigger) Collision:SetResponse(10, Collision.Prop, Collision.Trigger) self.entity:SetCollisionType(10) Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Roland Posted January 24, 2015 Share Posted January 24, 2015 It would be a good idea if Josh added a Collsion.User = 100 or something. That way he could have he's own stuff below 100 and the users could have their over 100 Same goes for the Collsion.Trigger Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Aaron Symons Posted January 29, 2015 Share Posted January 29, 2015 Can we collide two triggers together using this? I attempted to do so without luck. I'm probably missing something. Quote Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660 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.