Impulse fixed to N*s
This commit is contained in:
parent
2613604bc1
commit
8e52da614c
|
@ -22,7 +22,7 @@ The identifier of the blueprint this actor was based on, e.g. "vehicle.ford.must
|
|||
- <a name="carla.Actor.add_impulse"></a>**<font color="#7fb800">add_impulse</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**impulse**</font>)
|
||||
Adds an impulse to the actor. The parameter `impulse` determines magnitude and global axis where it is applied.
|
||||
- **Parameters:**
|
||||
- `impulse` (_[carla.Vector3D](#carla.Vector3D)<small> – N</small>_)
|
||||
- `impulse` (_[carla.Vector3D](#carla.Vector3D)<small> – N*s</small>_)
|
||||
- <a name="carla.Actor.add_angular_impulse"></a>**<font color="#7fb800">add_angular_impulse</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**impulse**</font>)
|
||||
Adds an angular impulse to the actor. The parameter `impulse` determines magnitude and global axis where it is applied.
|
||||
- **Parameters:**
|
||||
|
@ -462,7 +462,7 @@ Sets the maxixum time a network call is allowed before blocking it and raising a
|
|||
The actor the sensor is attached to, the one that measured the collision.
|
||||
- <a name="carla.CollisionEvent.other_actor"></a>**<font color="#f8805a">other_actor</font>** (_[carla.Actor](#carla.Actor)_)
|
||||
The second actor involved in the collision.
|
||||
- <a name="carla.CollisionEvent.normal_impulse"></a>**<font color="#f8805a">normal_impulse</font>** (_[carla.Vector3D](#carla.Vector3D)<small> – N</small>_)
|
||||
- <a name="carla.CollisionEvent.normal_impulse"></a>**<font color="#f8805a">normal_impulse</font>** (_[carla.Vector3D](#carla.Vector3D)<small> – N*s</small>_)
|
||||
Normal impulse resulting of the collision.
|
||||
|
||||
---
|
||||
|
@ -2836,14 +2836,14 @@ Command adaptation of **<font color="#7fb800">add_impulse()</font>** in [carla.A
|
|||
<h3>Instance Variables</h3>
|
||||
- <a name="command.ApplyImpulse.actor_id"></a>**<font color="#f8805a">actor_id</font>** (_int_)
|
||||
Actor affected by the command.
|
||||
- <a name="command.ApplyImpulse.impulse"></a>**<font color="#f8805a">impulse</font>** (_[carla.Vector3D](#carla.Vector3D)<small> – N</small>_)
|
||||
- <a name="command.ApplyImpulse.impulse"></a>**<font color="#f8805a">impulse</font>** (_[carla.Vector3D](#carla.Vector3D)<small> – N*s</small>_)
|
||||
Impulse applied to the actor.
|
||||
|
||||
<h3>Methods</h3>
|
||||
- <a name="command.ApplyImpulse.__init__"></a>**<font color="#7fb800">\__init__</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**actor**</font>, <font color="#00a6ed">**impulse**</font>)
|
||||
- **Parameters:**
|
||||
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
|
||||
- `impulse` (_[carla.Vector3D](#carla.Vector3D)<small> – N</small>_)
|
||||
- `impulse` (_[carla.Vector3D](#carla.Vector3D)<small> – N*s</small>_)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
params:
|
||||
- param_name: impulse
|
||||
type: carla.Vector3D
|
||||
param_units: N
|
||||
param_units: N*s
|
||||
doc: >
|
||||
Adds an impulse to the actor. The parameter `impulse` determines magnitude and global axis where it is applied.
|
||||
# --------------------------------------
|
||||
|
|
|
@ -270,7 +270,7 @@
|
|||
Actor affected by the command.
|
||||
- var_name: impulse
|
||||
type: carla.Vector3D
|
||||
var_units: N
|
||||
var_units: N*s
|
||||
doc: >
|
||||
Impulse applied to the actor.
|
||||
# - METHODS ----------------------------
|
||||
|
@ -283,7 +283,7 @@
|
|||
Actor or its ID to whom the command will be applied to.
|
||||
- param_name: impulse
|
||||
type: carla.Vector3D
|
||||
param_units: N
|
||||
param_units: N*s
|
||||
# --------------------------------------
|
||||
|
||||
- class_name: ApplyAngularImpulse
|
||||
|
|
|
@ -295,7 +295,7 @@
|
|||
The second actor involved in the collision.
|
||||
- var_name: normal_impulse
|
||||
type: carla.Vector3D
|
||||
var_units: N
|
||||
var_units: N*s
|
||||
doc: >
|
||||
Normal impulse resulting of the collision.
|
||||
|
||||
|
|
Loading…
Reference in New Issue