-
Notifications
You must be signed in to change notification settings - Fork 227
PhysicalObject
Adrien Givry edited this page Nov 23, 2023
·
4 revisions
Base class for any entity that is physical
- C++ related class:
OvCore::ECS::Components::CPhysicalObject
- Inherits from lua usertype:
Component
- Inherited by lua usertypes:
This usertype has no variables
Name | Input | Output | Description |
---|---|---|---|
new | PhysicalObject |
Name | Input | Output | Description |
---|---|---|---|
GetMass |
PhysicalObject : instance |
Returns the mass of the physical object | |
SetMass |
PhysicalObject : instancenumber : mass |
Defines a new mass for the physical object | |
GetFriction |
PhysicalObject : instance |
number |
Returns the friction of the physical object |
SetFriction |
PhysicalObject : instancenumber : friction |
Defines a new friction for the physical object | |
GetBounciness |
PhysicalObject : instance |
number |
Returns the bounciness of the physical object |
SetBounciness |
PhysicalObject : instancenumber : bounciness |
Defines a new bounciness for the physical object | |
SetLinearVelocity |
PhysicalObject : instanceVector3 : linearVelocity |
Defines a new linear velocity for the physical object | |
SetAngularVelocity |
PhysicalObject : instanceVector3 : angularVelocity |
Defines a new angular velocity for the physical object | |
GetLinearVelocity |
PhysicalObject : instance |
Vector3 |
Returns the linear velocity of the physical object |
GetAngularVelocity |
PhysicalObject : instance |
Vector3 |
Returns the angular of the physical object |
SetLinearFactor |
PhysicalObject : instanceVector3 : linearFactor |
Defines a new linear factor for the physical object | |
SetAngularFactor |
PhysicalObject : instanceVector3 : angularFactor |
Defines a new angular factor for the physical object | |
GetLinearFactor |
PhysicalObject : instance |
Vector3 |
Returns the linear factor of the physical object |
GetAngularFactor |
PhysicalObject : instance |
Vector3 |
Returns the angular of the physical object |
IsTrigger |
PhysicalObject : instance |
boolean |
Returns true if the physical object is a trigger |
SetTrigger |
PhysicalObject : instanceboolean : trigger |
Defines if the physical object should be a trigger or not | |
AddForce |
PhysicalObject : instanceVector3 : force |
Add a force to the physical object | |
AddImpulse |
PhysicalObject : instanceVector3 : impulse |
Add an impulse to the physical object | |
ClearForces |
PhysicalObject : instance |
Clear forces | |
SetCollisionDetectionMode |
PhysicalObject : instanceCollisionDetectionMode : mode |
Defines a new collision detection mode for the physical object | |
GetCollisionMode |
PhysicalObject : instance |
CollisionDetectionMode |
Returns the collision detection mode of the physical object |
IsKinematic |
PhysicalObject : instance |
boolean |
Returns true if the physical object is kinematic |
SetKinematic |
PhysicalObject : instanceboolean : kinematic |
Defines if the physical object should be kinematic or not |
This usertype has no operators