Liking cljdoc? Tell your friends :D

play-clj.g3d-physics


add-body!clj

(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))
sourceraw docstring

body-position!clj

(body-position! entity x y z)

Changes the position of the body in entity.

Changes the position of the body in `entity`.
sourceraw docstring

body-x!clj

(body-x! entity x)

Changes the x of the body in entity.

Changes the `x` of the body in `entity`.
sourceraw docstring

body-y!clj

(body-y! entity y)

Changes the y of the body in entity.

Changes the `y` of the body in `entity`.
sourceraw docstring

body-z!clj

(body-z! entity z)

Changes the z of the body in entity.

Changes the `z` of the body in `entity`.
sourceraw docstring

Body3Dclj

source

box-shapecljmacro

(box-shape box-half-extents & options)

Returns a btSphereShape.

Returns a btSphereShape.
sourceraw docstring

box-shape!cljmacro

(box-shape! object k & options)

Calls a single method on a box-shape.

Calls a single method on a `box-shape`.
sourceraw docstring

box-shape*clj

(box-shape* box-half-extents)
source

bullet-3dcljmacro

(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
sourceraw docstring

bullet-3d!cljmacro

(bullet-3d! screen k & options)

Calls a single method on a bullet-3d.

Calls a single method on a `bullet-3d`.
sourceraw docstring

bullet-3d*clj

(bullet-3d* type)
source

capsule-shapecljmacro

(capsule-shape radius height & options)

Returns a btCapsuleShape.

Returns a btCapsuleShape.
sourceraw docstring

capsule-shape!cljmacro

(capsule-shape! object k & options)

Calls a single method on a capsule-shape.

Calls a single method on a `capsule-shape`.
sourceraw docstring

capsule-shape*clj

(capsule-shape* radius height)
source

cone-shapecljmacro

(cone-shape radius height & options)

Returns a btConeShape.

Returns a btConeShape.
sourceraw docstring

cone-shape!cljmacro

(cone-shape! object k & options)

Calls a single method on a cone-shape.

Calls a single method on a `cone-shape`.
sourceraw docstring

cone-shape*clj

(cone-shape* radius height)
source

cylinder-shapecljmacro

(cylinder-shape half-extents & options)

Returns a btCylinderShape.

Returns a btCylinderShape.
sourceraw docstring

cylinder-shape!cljmacro

(cylinder-shape! object k & options)

Calls a single method on a cylinder-shape.

Calls a single method on a `cylinder-shape`.
sourceraw docstring

cylinder-shape*clj

(cylinder-shape* half-extents)
source

first-entityclj

(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.
sourceraw docstring

init-bulletclj

source

rigid-bodycljmacro

(rigid-body info & options)

Returns a body based on btRigidBody.

Returns a body based on btRigidBody.
sourceraw docstring

rigid-body!cljmacro

(rigid-body! object k & options)

Calls a single method on a rigid-body.

Calls a single method on a `rigid-body`.
sourceraw docstring

rigid-body*clj

(rigid-body* info)
source

rigid-body-infoclj

(rigid-body-info mass motion-state collision-shape local-inertia)

Returns a btRigidBodyConstructionInfo.

Returns a btRigidBodyConstructionInfo.
sourceraw docstring

second-entityclj

(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.
sourceraw docstring

soft-bodycljmacro

(soft-body info & options)

Returns a body based on btSoftBody.

Returns a body based on btSoftBody.
sourceraw docstring

soft-body!cljmacro

(soft-body! object k & options)

Calls a single method on a soft-body.

Calls a single method on a `soft-body`.
sourceraw docstring

soft-body*clj

(soft-body* info)
source

soft-body-infoclj

(soft-body-info)

Returns a btSoftBodyWorldInfo.

Returns a btSoftBodyWorldInfo.
sourceraw docstring

sphere-shapecljmacro

(sphere-shape radius & options)

Returns a btSphereShape.

Returns a btSphereShape.
sourceraw docstring

sphere-shape!cljmacro

(sphere-shape! object k & options)

Calls a single method on a sphere-shape.

Calls a single method on a `sphere-shape`.
sourceraw docstring

sphere-shape*clj

(sphere-shape* radius)
source

step!clj

(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.
sourceraw docstring

World3Dclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close