Leviathan  0.8.0.0
Leviathan game engine
Leviathan::BaseCustomJoint Class Reference

Base class for custom joint types defined for use by this class. More...

#include <PhysicalWorld.h>

+ Inheritance diagram for Leviathan::BaseCustomJoint:

Public Member Functions

virtual DLLEXPORT ~BaseCustomJoint ()
 This helps with allowing all custom types to be destroyed with a single callback. More...
 

Static Public Member Functions

static DLLEXPORT void JointDestructorCallback (const NewtonJoint *joint)
 

Detailed Description

Base class for custom joint types defined for use by this class.

Note
If these should be able to be accessed from elsewhere, move this to a new file

Definition at line 33 of file PhysicalWorld.h.

Constructor & Destructor Documentation

◆ ~BaseCustomJoint()

virtual DLLEXPORT Leviathan::BaseCustomJoint::~BaseCustomJoint ( )
inlinevirtual

This helps with allowing all custom types to be destroyed with a single callback.

Definition at line 36 of file PhysicalWorld.h.

36 {}

Member Function Documentation

◆ JointDestructorCallback()

DLLEXPORT void BaseCustomJoint::JointDestructorCallback ( const NewtonJoint *  joint)
static

Definition at line 192 of file PhysicalWorld.cpp.

193 {
194  void* user = NewtonJointGetUserData(joint);
195 
196  if(user)
197  delete static_cast<BaseCustomJoint*>(user);
198 }
Base class for custom joint types defined for use by this class.
Definition: PhysicalWorld.h:33

The documentation for this class was generated from the following files: