#include "igpch.h"#include "PhysicsAPI.h"#include "Ignite/API/ScriptContext.h"#include "Scene/Scene.h"Namespaces | |
| namespace | Raven |
| namespace | Raven::Script |
| namespace | Raven::Script::Physics |
Functions | |
| void | Raven::Script::Physics::AddImpulse (u64 entityID, const Crux::vec3 &impulse) |
| Applies an instantaneous linear impulse to an entity's physics body. | |
| void | Raven::Script::Physics::AddForce (u64 entityID, const Crux::vec3 &force) |
| Applies a continuous force to an entity's physics body for the current sub-step. | |
| void | Raven::Script::Physics::AddTorque (u64 entityID, const Crux::vec3 &torque) |
| Applies a continuous torque to an entity's physics body for the current sub-step. | |
| void | Raven::Script::Physics::AddLinearVelocity (u64 entityID, const Crux::vec3 &velocity) |
| Adds a delta to the current linear velocity of an entity's physics body. | |
| void | Raven::Script::Physics::SetLinearVelocity (u64 entityID, const Crux::vec3 &velocity) |
| Overwrites the linear velocity of an entity's physics body. | |
| Crux::vec3 | Raven::Script::Physics::GetLinearVelocity (u64 entityID) |
| Returns the current linear velocity of an entity's physics body. | |
| void | Raven::Script::Physics::AddAngularImpulse (u64 entityID, const Crux::vec3 &impulse) |
| Applies an instantaneous angular impulse to an entity's physics body. | |
| void | Raven::Script::Physics::SetAngularVelocity (u64 entityID, const Crux::vec3 &velocity) |
| Overwrites the angular velocity of an entity's physics body. | |
| Crux::vec3 | Raven::Script::Physics::GetAngularVelocity (u64 entityID) |
| Returns the current angular velocity of an entity's physics body. | |
| void | Raven::Script::Physics::SetGravityFactor (u64 entityID, float factor) |
| Scales the world gravity vector for a single entity's physics body. | |
| void | Raven::Script::Physics::SetActive (u64 entityID, bool active) |
| Activates or deactivates an entity's physics body in the simulation. | |