Photon Fusion 2.0.3

Public Attributes | Static Public Attributes | Properties | List of all members
NetworkTRSPData Struct Reference

Data structure storing spatial (Position/Rotation/Scale/Parent) synchronization data for spatial synchronization components, NetworkTRSP and its subclass NetworkTransform. More...

Inherits INetworkStruct.

Public Attributes

NetworkId AreaOfInterestOverride
 Id of a behaviour used as the reference point for this component during area of interest operations The behaviour should be a NetworkTRSP derived class, that is on the same Transform as its associated NetworkObject More...
 
NetworkBehaviourId Parent
 Id of a NetworkBehaviour on the parent of the component's transform. More...
 
Vector3 Position
 Position relevant for the spatial synchronization component (can be used to either store a local position or a world position, depending on the component) More...
 
Quaternion Rotation
 Rotation relevant for the spatial synchronization component (can be used to either store a local rotation or a world rotation, depending on the component) More...
 
Vector3Compressed Scale
 Scale relevant for the spatial synchronization component More...
 
int TeleportKey
 Key used to differentiate between several teleports More...
 

Static Public Attributes

const int POSITION_OFFSET = 2
 Offset to point at the position values on the data buffer More...
 
const int SIZE = WORDS * Allocator.REPLICATE_WORD_SIZE
 The actual size for the networked properties in bytes More...
 
const int WORDS = 14
 Networked properties word count for the base NetworkTRSPData More...
 

Properties

static NetworkBehaviourId NonNetworkedParent [get]
 Special NetworkBehaviourId value, used as a flag to tell the parent is a non-networked object More...
 

Detailed Description

Data structure storing spatial (Position/Rotation/Scale/Parent) synchronization data for spatial synchronization components, NetworkTRSP and its subclass NetworkTransform.

Member Data Documentation

◆ AreaOfInterestOverride

NetworkId AreaOfInterestOverride

Id of a behaviour used as the reference point for this component during area of interest operations The behaviour should be a NetworkTRSP derived class, that is on the same Transform as its associated NetworkObject

◆ Parent

Id of a NetworkBehaviour on the parent of the component's transform.

◆ Position

Vector3 Position

Position relevant for the spatial synchronization component (can be used to either store a local position or a world position, depending on the component)

◆ POSITION_OFFSET

const int POSITION_OFFSET = 2
static

Offset to point at the position values on the data buffer

◆ Rotation

Quaternion Rotation

Rotation relevant for the spatial synchronization component (can be used to either store a local rotation or a world rotation, depending on the component)

◆ Scale

Scale relevant for the spatial synchronization component

◆ SIZE

const int SIZE = WORDS * Allocator.REPLICATE_WORD_SIZE
static

The actual size for the networked properties in bytes

◆ TeleportKey

int TeleportKey

Key used to differentiate between several teleports

◆ WORDS

const int WORDS = 14
static

Networked properties word count for the base NetworkTRSPData

Property Documentation

◆ NonNetworkedParent

NetworkBehaviourId NonNetworkedParent
staticget

Special NetworkBehaviourId value, used as a flag to tell the parent is a non-networked object