0%

Physics virtroom

This example (source in https://github.com/cogentcore/lab/tree/main/physics/examples/virtroom) demonstrates how to use the PlaneXZ joint to move an object around on the plane, and how to use the physics API in a simulation context. Sensors for physical values and capturing the “first person” view from the eye of the virtual agent are also demonstrated.

Init

Grab Image


Step

Fwd

Bkw

Body Left

Body Right

Head Left

Head Right


Emer

Emer

Stiff

Move step

Rot step

Model steps

Width

Depth

Height

Thick

Depth vals

Camera

Camera

Depth map

Physics

Model

Model

Builder

Worlds

2 worlds

Replicas start

Replicas N

Scene

Scene

Scene editor

/widget-base/Cogen…View/scene-editor-1

Right Eye Image:

Right Eye Depth:


Rot:


Pan:


Save:


Not selectable