(add-body! screen body)
Adds the body
to the screen
and returns it.
(add-body! screen (rigid-body info))
Adds the `body` to the `screen` and returns it. (add-body! screen (rigid-body info))
(body-position! entity x y z)
Changes the position of the body in entity
.
Changes the position of the body in `entity`.
(body-x! entity x)
Changes the x
of the body in entity
.
Changes the `x` of the body in `entity`.
(body-y! entity y)
Changes the y
of the body in entity
.
Changes the `y` of the body in `entity`.
(body-z! entity z)
Changes the z
of the body in entity
.
Changes the `z` of the body in `entity`.
(box-shape box-half-extents & options)
Returns a btSphereShape.
Returns a btSphereShape.
(box-shape! object k & options)
Calls a single method on a box-shape
.
Calls a single method on a `box-shape`.
(bullet-3d type & options)
Returns a world based on btDynamicsWorld.
(bullet-3d :rigid) ; can only handle rigid bodies (bullet-3d :soft-rigid) ; can handle soft and rigid bodies
Returns a world based on btDynamicsWorld. (bullet-3d :rigid) ; can only handle rigid bodies (bullet-3d :soft-rigid) ; can handle soft and rigid bodies
(bullet-3d! screen k & options)
Calls a single method on a bullet-3d
.
Calls a single method on a `bullet-3d`.
(capsule-shape radius height & options)
Returns a btCapsuleShape.
Returns a btCapsuleShape.
(capsule-shape! object k & options)
Calls a single method on a capsule-shape
.
Calls a single method on a `capsule-shape`.
(cone-shape radius height & options)
Returns a btConeShape.
Returns a btConeShape.
(cone-shape! object k & options)
Calls a single method on a cone-shape
.
Calls a single method on a `cone-shape`.
(cylinder-shape half-extents & options)
Returns a btCylinderShape.
Returns a btCylinderShape.
(cylinder-shape! object k & options)
Calls a single method on a cylinder-shape
.
Calls a single method on a `cylinder-shape`.
(first-entity screen entities)
Returns the first entity in a contact. May only be used in contact functions such as :on-begin-contact.
Returns the first entity in a contact. May only be used in contact functions such as :on-begin-contact.
(rigid-body info & options)
Returns a body based on btRigidBody.
Returns a body based on btRigidBody.
(rigid-body! object k & options)
Calls a single method on a rigid-body
.
Calls a single method on a `rigid-body`.
(rigid-body-info mass motion-state collision-shape local-inertia)
Returns a btRigidBodyConstructionInfo.
Returns a btRigidBodyConstructionInfo.
(second-entity screen entities)
Returns the second entity in a contact. May only be used in contact functions such as :on-begin-contact.
Returns the second entity in a contact. May only be used in contact functions such as :on-begin-contact.
(soft-body info & options)
Returns a body based on btSoftBody.
Returns a body based on btSoftBody.
(soft-body! object k & options)
Calls a single method on a soft-body
.
Calls a single method on a `soft-body`.
(soft-body-info)
Returns a btSoftBodyWorldInfo.
Returns a btSoftBodyWorldInfo.
(sphere-shape radius & options)
Returns a btSphereShape.
Returns a btSphereShape.
(sphere-shape! object k & options)
Calls a single method on a sphere-shape
.
Calls a single method on a `sphere-shape`.
(step! {:keys [delta-time max-sub-steps time-step]
:or {max-sub-steps 5 time-step (/ 1 60)}
:as screen})
(step! screen entities)
Runs the physics simulations for a single frame and optionally returns the
entities
with their positions updated.
Runs the physics simulations for a single frame and optionally returns the `entities` with their positions updated.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close