CDistributedSmoothNodeBase

from panda3d.direct import CDistributedSmoothNodeBase
class CDistributedSmoothNodeBase

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

Inheritance diagram

Inheritance diagram of CDistributedSmoothNodeBase

__init__()
__init__(param0: CDistributedSmoothNodeBase)
broadcastPosHprFull()None

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

broadcastPosHprXy()None

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

broadcastPosHprXyh()None

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

initialize(node_path: panda3d.core.NodePath, dclass: DCClass, do_id: int)None

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()None
sendEverything()None

Broadcasts the current pos/hpr in its complete form.

setClockDelta(clock_delta: object)None

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

setCurrL(l: int)None

Appends the timestamp and sends the update.

setRepository(repository: CConnectionRepository, is_ai: bool, ai_id: int)None

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