Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Physics::Component::RigidBodyInternal Struct Reference

Internal component storing Jolt Physics data. More...

#include <RigidBodyInternal.hpp>

Public Member Functions

 RigidBodyInternal ()=default
 Default constructor (invalid body).
 RigidBodyInternal (JPH::BodyID id)
 Construct with body ID.
bool IsValid () const
 Check if this component has a valid body.

Public Attributes

JPH::BodyID bodyID
 Jolt Physics body identifier.

Detailed Description

Internal component storing Jolt Physics data.

This component is managed automatically by the RigidBodySystem and should never be added/removed manually by users.

Warning
Internal use only! Do not use directly.

Constructor & Destructor Documentation

◆ RigidBodyInternal() [1/2]

Physics::Component::RigidBodyInternal::RigidBodyInternal ( )
default

Default constructor (invalid body).

◆ RigidBodyInternal() [2/2]

Physics::Component::RigidBodyInternal::RigidBodyInternal ( JPH::BodyID id)
inlineexplicit

Construct with body ID.

Parameters
idThe Jolt body ID

Member Function Documentation

◆ IsValid()

bool Physics::Component::RigidBodyInternal::IsValid ( ) const
inlinenodiscard

Check if this component has a valid body.

Member Data Documentation

◆ bodyID

JPH::BodyID Physics::Component::RigidBodyInternal::bodyID

Jolt Physics body identifier.


The documentation for this struct was generated from the following file: