Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 5 revisions

module cyclops extends Entity wraps cyclops::SphereShape

Represents a sphere shape, with a specific radius.

Methods

Method(s) Description
SphereShape create(float radius, int subdivisions) static Returns true if an effect is set for the entity

Examples

Creation

	# Create a sphere with a radius on 1 meter, with a 4 subdivision level.
	s = SphereShape.create(1, 4)
	# Make the sphere half-transparent and move it
	s.getMaterial().setAlpha(0.5)
	s.setPosition(Vector3(0, 1.5, 0))
Clone this wiki locally