| 1 |
func subtest_attribute(state): |
| 2 |
state.center_of_mass.x -= 1.0 |
| 3 |
|
| 4 |
func subtest_variable_index(state, prop): |
| 5 |
state[prop].x = 1.0 |
| 6 |
|
| 7 |
func test(): |
| 8 |
var state = PhysicsDirectBodyState3DExtension.new() |
| 9 |
subtest_attribute(state) |
| 10 |
subtest_variable_index(state, &"center_of_mass") |
| 11 |
state.free() |