ARKitPhysicsBody class
The ARKitPhysicsBody class describes the physics properties (such as mass, friction...) of a node.
- Annotations
-
- @JsonSerializable()
Constructors
- ARKitPhysicsBody(ARKitPhysicsBodyType type, {ARKitPhysicsShape? shape, int? categoryBitMask})
-
const
Properties
- categoryBitMask → int?
-
Defines what logical 'categories' this body belongs to.
Defaults to SCNPhysicsCollisionCategoryStatic for static bodies and SCNPhysicsCollisionCategoryDefault for the other body types.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ARKitPhysicsShape?
-
Specifies the shape of the receiver.
final
- type → ARKitPhysicsBodyType
-
Specifies the type of the receiver.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → ARKitPhysicsBody