CollisionShape2D.pkg 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. $#include "CollisionShape2D.h"
  2. class CollisionShape2D : Component
  3. {
  4. void SetTrigger(bool trigger);
  5. void SetCategoryBits(int categoryBits);
  6. void SetMaskBits(int maskBits);
  7. void SetGroupIndex(int groupIndex);
  8. void SetDensity(float density);
  9. void SetFriction(float friction);
  10. void SetRestitution(float restitution);
  11. bool IsTrigger() const;
  12. int GetCategoryBits() const;
  13. int GetMaskBits() const;
  14. int GetGroupIndex() const;
  15. float GetDensity() const;
  16. float GetFriction() const;
  17. float GetRestitution() const;
  18. float GetMass() const;
  19. float GetInertia() const;
  20. Vector2 GetMassCenter() const;
  21. tolua_property__is_set bool trigger;
  22. tolua_property__get_set int categoryBits;
  23. tolua_property__get_set int maskBits;
  24. tolua_property__get_set int groupIndex;
  25. tolua_property__get_set float density;
  26. tolua_property__get_set float friction;
  27. tolua_property__get_set float restitution;
  28. tolua_readonly tolua_property__get_set float mass;
  29. tolua_readonly tolua_property__get_set float inertia;
  30. tolua_readonly tolua_property__get_set Vector2 massCenter;
  31. };