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

Classes

struct  BoxCollider
struct  CapsuleCollider
struct  CharacterController
 Component representing a character controller, which allows for easy character movement and collision handling. More...
struct  CharacterControllerInternal
 Internal component that holds the Jolt CharacterVirtual object. Managed automatically by the plugin. More...
struct  ConstraintInternal
 Internal component storing Jolt Physics constraint data. More...
struct  ConstraintSettings
struct  ConvexHullMeshCollider
 Convex hull mesh collider. More...
struct  DefaultCollider
 Default collider using mesh bounds. More...
struct  DistanceConstraint
struct  FixedConstraint
struct  MeshCollider
 Triangle mesh collider (concave mesh support). More...
struct  PointConstraint
struct  RigidBody
struct  RigidBodyInternal
 Internal component storing Jolt Physics data. More...
struct  SoftBodySettings
 Soft body simulation settings. More...
struct  SoftBody
 Soft body physics component. More...
struct  SoftBodyInternal
 Internal component storing Jolt soft body reference. More...
struct  SphereCollider
struct  TorqueCurvePoint
 Torque curve point for normalized engine torque. More...
struct  GearboxSettings
 Gearbox configuration for vehicle transmission. More...
struct  EngineSettings
 Engine configuration. More...
struct  RollbarSettings
 Rollbar (anti-roll bar) configuration. More...
struct  Vehicle
 Main vehicle component containing all configuration. More...
struct  VehicleController
 Vehicle input controller component. More...
struct  VehicleInternal
 Internal vehicle component storing Jolt-specific data. More...
struct  FrictionCurvePoint
 Friction curve point for tire friction modeling. More...
struct  WheelSettings
 Settings for an individual wheel in a vehicle. More...

Typedefs

using MotionType = JPH::EMotionType
 Motion type for rigid bodies.
using Activation = JPH::EActivation
 Activation mode for bodies when added to the physics world.

Enumerations

enum class  ConstraintType : uint8_t { Fixed , Distance , Point }
 Enumeration of supported constraint types. More...
enum class  SoftBodyType {
  Custom , Cloth , Rope , Cube ,
  Pressure
}
 Type of soft body for preset configurations. More...
enum class  DrivetrainType : uint8_t { AWD , FWD , RWD }
 Drivetrain configuration for vehicle. More...
enum class  CollisionTesterType : uint8_t { Ray , CastSphere , CastCylinder }
 Collision tester type for vehicle wheel collision detection. More...
enum class  TransmissionMode : uint8_t { Auto , Manual }
 Transmission mode - how gears are shifted. More...
enum class  WheelIndex : uint8_t {
  FrontLeft = 0 , FrontRight = 1 , RearLeft = 2 , RearRight = 3 ,
  Count = 4
}
 Enum for identifying wheel positions in a 4-wheel vehicle. More...

Typedef Documentation

◆ Activation

using Physics::Component::Activation = JPH::EActivation

Activation mode for bodies when added to the physics world.

◆ MotionType

using Physics::Component::MotionType = JPH::EMotionType

Motion type for rigid bodies.

Enumeration Type Documentation

◆ CollisionTesterType

enum class Physics::Component::CollisionTesterType : uint8_t
strong

Collision tester type for vehicle wheel collision detection.

Determines how wheel-ground collision is detected. CastCylinder is recommended for most use cases as it handles internal edges between adjacent static bodies (e.g., floor tiles) better.

Enumerator
Ray 

Simple raycast - fastest but prone to ghost collisions on tiled floors.

CastSphere 

Sphere cast - better than ray, good for rough terrain.

CastCylinder 

Cylinder cast - most accurate, best for tiled floors and complex terrain (default).

◆ ConstraintType

enum class Physics::Component::ConstraintType : uint8_t
strong

Enumeration of supported constraint types.

Enumerator
Fixed 

Fixed constraint (0 DOF) - welds two bodies together.

Distance 

Distance constraint (5 DOF) - rope/spring with min/max distance.

Point 

Point constraint (3 DOF) - ball-and-socket joint.

◆ DrivetrainType

enum class Physics::Component::DrivetrainType : uint8_t
strong

Drivetrain configuration for vehicle.

Enumerator
AWD 

All-Wheel Drive - power to all 4 wheels.

FWD 

Front-Wheel Drive - power to front wheels only.

RWD 

Rear-Wheel Drive - power to rear wheels only.

◆ SoftBodyType

Type of soft body for preset configurations.

Enumerator
Custom 

User-defined configuration.

Cloth 

2D grid for flags, capes, curtains

Rope 

1D chain for ropes, cables, chains

Cube 

3D volumetric soft body

Pressure 

Pressure-based soft body (balloons, inflatables).

◆ TransmissionMode

enum class Physics::Component::TransmissionMode : uint8_t
strong

Transmission mode - how gears are shifted.

Enumerator
Auto 

Automatically shift gear up and down.

Manual 

Manual gear shift (controlled by user input).

◆ WheelIndex

enum class Physics::Component::WheelIndex : uint8_t
strong

Enum for identifying wheel positions in a 4-wheel vehicle.

Enumerator
FrontLeft 
FrontRight 
RearLeft 
RearRight 
Count