I’m trying to create C++ application that simulates Newtown’s law of Gravitation. But currently I have a problem with PhysicsManager.
PhysicsManager:
_physicals (2 physicals)
Physical
_physics_objects (1 objects)
PhysicsObject
_position 0 0 0
_last_position 0 0 0
_velocity 0 0 0
(implicit velocity 0 0 0)
_orientation 1 + 0i + 0j + 0k
(hpr 0 0 0)
_rotation 1 + 0i + 0j + 0k
_terminal_velocity 400
_mass 1
_process_me 1
_oriented 1
_linear_forces (2 forces)
LinearVectorForce:
_fvec 0 0 0
LinearForce (id 02D16E8C)
_amplitude 0
_mass_dependent 1
_x_mask 1
_y_mask 1
_z_mask 1
BaseForce (id 02D16E8C):
_force_node render/myRender/Render Force Node
_active 1
LinearVectorForce:
_fvec 10 0 0
LinearForce (id 02BFB544)
_amplitude 0
_mass_dependent 0
_x_mask 1
_y_mask 1
_z_mask 1
BaseForce (id 02BFB544):
_force_node render/myRender/Render Force Node
_active 1
_angular_forces (0 forces)
_phys_body
PhysicsObject
_position 0 0 0
_last_position 0 0 0
_velocity 0 0 0
(implicit velocity 0 0 0)
_orientation 1 + 0i + 0j + 0k
(hpr 0 0 0)
_rotation 1 + 0i + 0j + 0k
_terminal_velocity 400
_mass 1
_process_me 1
_oriented 1
Physical
_physics_objects (1 objects)
PhysicsObject
_position 0 0 0
_last_position 0 0 0
_velocity 0 0 0
(implicit velocity 0 0 0)
_orientation 1 + 0i + 0j + 0k
(hpr 0 0 0)
_rotation 1 + 0i + 0j + 0k
_terminal_velocity 400
_mass 1
_process_me 1
_oriented 1
_linear_forces (1 forces)
LinearVectorForce:
_fvec 0 0 0
LinearForce (id 02D19FFC)
_amplitude 0
_mass_dependent 1
_x_mask 1
_y_mask 1
_z_mask 1
BaseForce (id 02D19FFC):
_force_node render/myRender/Render Force Node
_active 1
_angular_forces (0 forces)
_phys_body
PhysicsObject
_position 0 0 0
_last_position 0 0 0
_velocity 0 0 0
(implicit velocity 0 0 0)
_orientation 1 + 0i + 0j + 0k
(hpr 0 0 0)
_rotation 1 + 0i + 0j + 0k
_terminal_velocity 400
_mass 1
_process_me 1
_oriented 1
_linear_forces (0 forces)
_angular_forces (0 forces)
_linear_integrator:
LinearEulerIntegrator:
LinearIntegrator:
_max_linear_dt 0.0333333 (class static)
BaseIntegrator:
_precomputed_linear_matrices
[ 1 0 0 0 ] [ 0 1 0 0 ] [ 0 0 1 0 ] [ 0 0 0 1 ]
_precomputed_angular_matrices
_angular_integrator:
null
Everything seems to be good.
Forces are in Physicals and also in Force-Nodes. Angular Integrator is attached.
Physics manager,forces,actor_nodes seems to exist in main_loop.
Geom nodes reparented to actor nodes.
I’m calling do_physics every frame, but - nothing’s working.
Please tell - what’s missing?