ARPhysicsBody class
Physics body for AR objects
Constructors
-
ARPhysicsBody({required String id, required String nodeId, required PhysicsBodyType type, required PhysicsMaterial material, required Vector3 position, required Quaternion rotation, required Vector3 scale, required Vector3 velocity, required Vector3 angularVelocity, required bool isActive, required double mass, required DateTime createdAt, required DateTime lastUpdated, Map<
String, dynamic> metadata = const {}}) -
ARPhysicsBody.fromMap(Map<
String, dynamic> map) -
factory
Properties
- angularVelocity → Vector3
-
final
- createdAt → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- isActive → bool
-
final
- isDynamic → bool
-
no setter
- isKinematic → bool
-
no setter
- isStatic → bool
-
no setter
- lastUpdated → DateTime
-
final
- mass → double
-
final
- material → PhysicsMaterial
-
final
-
metadata
→ Map<
String, dynamic> -
final
- nodeId → String
-
final
- position → Vector3
-
final
- rotation → Quaternion
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → Vector3
-
final
- type → PhysicsBodyType
-
final
- velocity → Vector3
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override