Skip to main content

fynkel_physics 0.1.1 copy "fynkel_physics: ^0.1.1" to clipboard
fynkel_physics: ^0.1.1 copied to clipboard

3D physics for Fynkel games, on Rapier. Rigidbodies, colliders, triggers, joints and a character controller, as in Unity.

example/example.md

import 'package:fynkel/fynkel.dart';
import 'package:fynkel_physics/fynkel_physics.dart';

/// A ball that falls on the ground.
class Falling extends GameObject {
  @override
  void onLoad() {
    super.onLoad();
    add(GameObject(components: [BoxCollider(size: Vec3(10, 1, 10))]));
    add(
      GameObject(
        transform: Transform(position: Vec3(0, 5, 0)),
        components: [MeshRenderer(Mesh.sphere(), Material()), SphereCollider(), Rigidbody()],
      ),
    );
  }
}
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherfynkel.com

Weekly Downloads

3D physics for Fynkel games, on Rapier. Rigidbodies, colliders, triggers, joints and a character controller, as in Unity.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#game #game-engine #physics

License

MIT (license)

Dependencies

code_assets, ffi, fynkel, hooks, meta

More

Packages that depend on fynkel_physics