Panda3D
Public Member Functions | List of all members
CDistributedSmoothNodeBase Class Reference

This class defines some basic methods of DistributedSmoothNodeBase which have been moved into C++ as a performance optimization. More...

Public Member Functions

 __init__ ()
 
 broadcastPosHprFull ()
 Examines the complete pos/hpr information to see which of the six elements have changed, and broadcasts the appropriate messages. More...
 
 broadcastPosHprXy ()
 Examines only X and Y of the pos/hpr information, and broadcasts the appropriate messages. More...
 
 broadcastPosHprXyh ()
 Examines only X, Y, and H of the pos/hpr information, and broadcasts the appropriate messages. More...
 
 initialize (const NodePath node_path, DCClass dclass, CHANNELTYPE do_id)
 Initializes the internal structures from some constructs that are normally stored only in Python. Also reads the current node's pos & hpr values in preparation for transmitting them via one of the broadcast_pos_hpr_*() methods. More...
 
 printCurrL ()
 
 sendEverything ()
 Broadcasts the current pos/hpr in its complete form. More...
 
 setClockDelta (object clock_delta)
 Tells the C++ instance definition about the global ClockDelta object. More...
 
 setCurrL (PNUint64 l)
 published function to set current location for this object, this location is then sent out along with the next position broadcast Appends the timestamp and sends the update. More...
 
 setRepository (CConnectionRepository repository, bool is_ai, CHANNELTYPE ai_id)
 Tells the C++ instance definition about the AI or Client repository, used for sending datagrams. More...
 

Detailed Description

This class defines some basic methods of DistributedSmoothNodeBase which have been moved into C++ as a performance optimization.

Member Function Documentation

◆ __init__()

__init__ ( )

◆ broadcastPosHprFull()

broadcastPosHprFull ( )

Examines the complete pos/hpr information to see which of the six elements have changed, and broadcasts the appropriate messages.

◆ broadcastPosHprXy()

broadcastPosHprXy ( )

Examines only X and Y of the pos/hpr information, and broadcasts the appropriate messages.

◆ broadcastPosHprXyh()

broadcastPosHprXyh ( )

Examines only X, Y, and H of the pos/hpr information, and broadcasts the appropriate messages.

◆ initialize()

initialize ( const NodePath  node_path,
DCClass  dclass,
CHANNELTYPE  do_id 
)

Initializes the internal structures from some constructs that are normally stored only in Python. Also reads the current node's pos & hpr values in preparation for transmitting them via one of the broadcast_pos_hpr_*() methods.

◆ printCurrL()

printCurrL ( )

◆ sendEverything()

sendEverything ( )

Broadcasts the current pos/hpr in its complete form.

◆ setClockDelta()

setClockDelta ( object  clock_delta)

Tells the C++ instance definition about the global ClockDelta object.

◆ setCurrL()

setCurrL ( PNUint64  l)

published function to set current location for this object, this location is then sent out along with the next position broadcast Appends the timestamp and sends the update.

◆ setRepository()

setRepository ( CConnectionRepository  repository,
bool  is_ai,
CHANNELTYPE  ai_id 
)

Tells the C++ instance definition about the AI or Client repository, used for sending datagrams.