Repository navigation
Description
Describe the bug
On Newton, a wrench set through an asset's wrench composer acts only on the first solver substep of a physics step.
With NewtonCfg(num_substeps=N), a constant external force delivers 1/N of its impulse. When Newton runs the
decimation loop itself, the force acts only on the first substep of the first physics step, i.e. 1/(decimation x N).
That is the default for articulations with supported explicit actuators such as DCMotorCfg, since
SimulationCfg.use_newton_actuators defaults to True. Gravity and joint efforts are not affected, CUDA graphs on or
off make no difference, and PhysX delivers the full impulse.
The assets write the composed wrench into state_0.body_f once per step in write_data_to_sim().
NewtonManager._run_solver_substeps clears the forces of the input state after every solver substep (and swaps the
double-buffered states), so later substeps see no external force.
Steps to reproduce
A free 1 kg cube, gravity off, a constant 1 N force along +x for 0.1 s:
import torch
from isaaclab_newton.physics import MJWarpSolverCfg, NewtonCfg
import isaaclab.sim as sim_utils
from isaaclab.app import launch_simulation
from isaaclab.assets import RigidObjectCfg
from isaaclab.scene import InteractiveScene, InteractiveSceneCfg
from isaaclab.utils.configclass import configclass
@configclass
class SceneCfg(InteractiveSceneCfg):
cube = RigidObjectCfg(
prim_path="{ENV_REGEX_NS}/Cube",
spawn=sim_utils.CuboidCfg(
size=(0.1, 0.1, 0.1),
rigid_props=sim_utils.UsdPhysicsRigidBodyCfg(),
mass_props=sim_utils.MassCfg(mass=1.0),
collision_props=sim_utils.UsdPhysicsCollisionCfg(),
),
)
for num_substeps in (1, 2, 4):
physics = NewtonCfg(solver_cfg=MJWarpSolverCfg(), num_substeps=num_substeps)
sim_cfg = sim_utils.SimulationCfg(dt=0.005, gravity=(0.0, 0.0, 0.0), physics=physics)
with launch_simulation(sim_cfg), sim_utils.build_simulation_context(sim_cfg=sim_cfg) as sim:
scene = InteractiveScene(SceneCfg(num_envs=1, env_spacing=1.0))
sim.reset()
cube = scene["cube"]
force = torch.tensor([[[1.0, 0.0, 0.0]]], device=sim.device) # 1 N along +x on a 1 kg cube
cube.permanent_wrench_composer.set_forces_and_torques_index(
forces=force, torques=torch.zeros_like(force), is_global=True
)
for _ in range(20): # 0.1 s
scene.write_data_to_sim()
sim.step()
scene.update(sim.get_physics_dt())
print(f"num_substeps={num_substeps}: v_x = {cube.data.root_lin_vel_w.torch[0, 0].item():.3f} m/s (F*t/m = 0.100)")num_substeps=1: v_x = 0.100 m/s (F*t/m = 0.100)
num_substeps=2: v_x = 0.050 m/s (F*t/m = 0.100)
num_substeps=4: v_x = 0.025 m/s (F*t/m = 0.100)
System Info
- Commit: develop ef22b2f; the same code is on release/3.0.0 (99b56e0)
- Isaac Sim Version: 6.1.0-rc.26
- Newton 1.6.0
- OS: Ubuntu 24.04
- GPU: RTX PRO 5000 Blackwell
- CUDA: 13.0
- GPU Driver: 580.126.20
Additional context
Draft #8218 re-applies authored forces on every substep as part of its manager rewrite.
Checklist
- I have checked that there is no similar issue in the repo (required)
- I have checked that the issue is not in running Isaac Sim itself and is related to the repo
Acceptance Criteria
- A force written before a step acts on every solver substep of every physics step in that step.
Activity
RandomOakForest commentedon Oct 7, 2026
Thank you for posting this and adding the PR.
Apply Newton external wrenches on every solver substep (#8269)
Apply Newton external wrenches on every solver substep (isaac-sim#8269)