Banuba SDK
BNBPhysicsSimulator.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from scene.djinni
3 
4 #import "BNBVec3.h"
5 #import <Foundation/Foundation.h>
6 
7 
8 /**Interface for adjustment physics simulation. */
9 
10 #ifndef DJINNI_EXPORT
11  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
12 #endif
13 
15 @interface BNBPhysicsSimulator : NSObject
16 
17 /**
18  *Sets gravitation vector.
19  *@param gravity (vec3): gravity value
20  */
21 - (void)setGravity:(nonnull BNBVec3 *)gravity;
22 
23 /**
24  *Sets damping value.
25  *@param damping (float): damping value
26  */
27 - (void)setDamping:(float)damping;
28 
29 /**
30  *Sets inverse bone mass.
31  *@param boneName (string): bone name
32  *@param value (float): inverse bone mass
33  */
34 - (void)setInvMass:(nonnull NSString *)boneName
35  value:(float)value;
36 
37 /**
38  *Add sphere collider.
39  *@param sphereIndex (int): index for sphere
40  *@param center (vec3): sphere center in world space
41  *@param radius (float): sphere radius
42  */
43 - (void)setSphereCollider:(int32_t)sphereIndex
44  center:(nonnull BNBVec3 *)center
45  radius:(float)radius;
46 
47 /**
48  *Add constraint between bone1 and bone2.
49  *@param bone1Name (string): from bone name
50  *@param bone2Name (string): to bone name
51  *@param distance (float): constaint length
52  */
53 - (void)setConstraint:(nonnull NSString *)bone1Name
54  bone2Name:(nonnull NSString *)bone2Name
55  distance:(float)distance;
56 
57 /**
58  *Sets bonesInMvSpace flag
59  *false for legacy effects with special vertex shaders
60  *true for using same vertex shaders as for non-physics meshes
61  */
62 - (void)setBonesInMvSpace:(BOOL)bonesInMvSpace;
63 
64 /**Reset simulator to default state */
65 - (void)reset;
66 
67 @end
-[BNBPhysicsSimulator reset]
void reset()
Reset simulator to default state.
DJINNI_EXPORT
#define DJINNI_EXPORT
for order of values in action units array see action_units_indices enum
Definition: BNBActionUnits.h:9
BNBVec3
Definition: BNBVec3.h:12
BNBPhysicsSimulator
Interface for adjustment physics simulation.
Definition: BNBPhysicsSimulator.h:15
BNBVec3.h