CDistributedSmoothNodeBase

from panda3d.direct import CDistributedSmoothNodeBase
class CDistributedSmoothNodeBase

Bases:

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)
broadcast_pos_hpr_full()

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

broadcast_pos_hpr_xy()

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

broadcast_pos_hpr_xyh()

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)

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.

print_curr_l()
send_everything()

Broadcasts the current pos/hpr in its complete form.

set_clock_delta(clock_delta: object)

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

set_curr_l(l: int)

Appends the timestamp and sends the update.

set_repository(repository: CConnectionRepository, is_ai: bool, ai_id: int)

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