AtavismObjectNode Class

Namespace
Atavism
Base Types
  • object
Derived Types
graph BT Type-->Base0["object"] Type["AtavismObjectNode"] class Type type-node Derived0["AtavismMobNode"]-->Type click Derived0 "/docs/client_api_10.4.0/api/Atavism/AtavismMobNode"

Syntax

public class AtavismObjectNode

Constructors

Events

Fields

Properties

Name Value Summary
FollowTerrain bool
GameObject GameObject
MobController AtavismMobController
Name string
ObjectType ObjectNodeType
Oid long
Orientation Quaternion
Parent GameObject
Position Vector3
Set and get the object's target position
Properties Dictionary<string, object>
PropertyNames List<string>
Targetable bool

Methods

Name Value Summary
CheckBooleanProperty(string) bool
GetControllingTransform() Transform
GetProperty(string) object
Init(string, ObjectNodeType, AtavismWorldManager) void
LateTick(float) void
OnOrientationChange() void
OnPositionChange() void
OnPropertyChange(string) void
PropertyExists(string) bool
RegisterPropertyChangeHandler(string, PropertyChangeEventHandler) void
RemovePropertyChangeHandler(string, PropertyChangeEventHandler) void
SetDirLoc(long, Vector3, Vector3) void
Sets up the data needed for interpolated movement of an object. In this case, it is the direction, location, and timestamp when that location was the current location.
SetLoc(long, Vector3) void
SetOrientation(Quaternion) void
SetProperty(string, object) void
Tick(float) void
Update the node
UpdateProperties(Dictionary<string, object>) void
Set multiple properties at once. We set all the properties first, and then raise the PropertyChange() events so that if multiple properties change in one message, they appear atomic to the scripts.