Jump to content

Extending Bullet API


Recommended Posts

Ahoy 'hoy.

 

As it stands there is a fairly limited subset of the Bullet physics library we can access from the Mod API.

PhysicsLuaProxy provides to us the following functions:

Spoiler

SetMotorVel
GetMotorVel
SetMotorVelOverride
ClearMotorVelOverride
GetMotorSpeed
SetVel
Stop
GetVelocity
SetSphere
SetCapsule
SetCylinder
GetRadius
GetHeight
GetMass
SetMass
SetCollides
GeoProbe
Teleport
SetActive
IsActive
SetDontRemoveOnSleep
IsPassable
CheckGridOffset
GetCollisionMask
SetCollisionMask
GetCollisionGroup
SetCollisionGroup
CollidesWith
ClearCollisionMask
SetFriction
SetRestitution
SetDamping
SetCollisionCallback

Which is a quite nice of a list, but Bullet is able to do more.

 

 

However, there is something very crucial that is missing.

A cuboid shape.

 

I'd like to request being able to create a cuboid shape that may be resized in the three axis.

As well as being able to rotate any physics object- right now the capsule and cylinder are always sticking with their ends up into the sky.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...