Kanzi  3.9.4
Java API
ConstraintsMetadata Interface Reference

Metadata definitions for Constraints. More...

Public Attributes

DynamicPropertyType< Boolean > ConstraintInWorldCoordinatesProperty
 Specifies if the object constraining is done in world coordinates (when false, done in local coordinates). More...
 
DynamicPropertyType< String > ConstraintOrientationProperty
 Makes an object node where the property is attached to obtain orientation from target object. More...
 
DynamicPropertyType< String > ConstraintPositionProperty
 Makes an object node where the property is attached to obtain position from target object. More...
 
DynamicPropertyType< Integer > FaceToCameraModeProperty
 Sets how to rotate the 3D node towards a camera: More...
 
DynamicPropertyType< String > FaceToCameraTargetCameraProperty
 Sets the camera towards which the 3D node turns when you set the Face to Camera Mode property. More...
 
DynamicPropertyType< String > LookAtProperty = new DynamicPropertyType<>("LookAt", String.class)
 Makes a node to always face the node set in this property.
 
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.Constraints")
 Metaclass for Constraints.
 

Detailed Description

Metadata definitions for Constraints.

Member Data Documentation

◆ ConstraintInWorldCoordinatesProperty

DynamicPropertyType<Boolean> ConstraintInWorldCoordinatesProperty
Initial value:
=
new DynamicPropertyType<>("ConstraintInWorldCoordinates", Boolean.class)

Specifies if the object constraining is done in world coordinates (when false, done in local coordinates).

◆ ConstraintOrientationProperty

DynamicPropertyType<String> ConstraintOrientationProperty
Initial value:
=
new DynamicPropertyType<>("ConstraintOrientation", String.class)

Makes an object node where the property is attached to obtain orientation from target object.

◆ ConstraintPositionProperty

DynamicPropertyType<String> ConstraintPositionProperty
Initial value:
=
new DynamicPropertyType<>("ConstraintPosition", String.class)

Makes an object node where the property is attached to obtain position from target object.

◆ FaceToCameraModeProperty

DynamicPropertyType<Integer> FaceToCameraModeProperty
Initial value:
=
new DynamicPropertyType<>("FaceToCameraMode", Integer.class)

Sets how to rotate the 3D node towards a camera:

  • Disabled does not make the node turn to the camera.
  • Look at rotates the node along all axes to turn to the camera.
  • Billboarding keeps the node perpendicular to the camera FOV.
  • Cylindrical rotates the node along the y axis to turn to the camera.

By default the node turns to the Scene default camera. To use a different camera, set the Face to Camera Target Camera property.

◆ FaceToCameraTargetCameraProperty

DynamicPropertyType<String> FaceToCameraTargetCameraProperty
Initial value:
=
new DynamicPropertyType<>("FaceToCameraTargetCamera", String.class)

Sets the camera towards which the 3D node turns when you set the Face to Camera Mode property.

The default is the Scene default camera.